package sunbao.ido.proxy;

import org.springframework.util.CollectionUtils;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * \* User: MeiZhongHao
 * \* Date: 2018-10-22
 * \* Time: 15:15
 * \* Description:
 * \
 */
public class InterfaceFactory {

    private static Map<Class<?>, IDoProxyFactory<?>> knownMappers = null;

    public static Map<Class<?>, IDoProxyFactory<?>> getInstance() {
        if (CollectionUtils.isEmpty(knownMappers)) {
            if (CollectionUtils.isEmpty(knownMappers)) {
                knownMappers = new ConcurrentHashMap<>();
            }
        }
        return knownMappers;
    }
}